package OOday02.HomeWork2.Person;

public class Person {
    String name;
    int age;
    String address;
    Person(){

    }
    Person(String name,int age,String address){
        this.address=address;
        this.name=name;
        this.age=age;
    }
    void eat(){
        System.out.println(age+"岁的"+name+"正在"+address+"吃饭");
    }
    void sleep(){
        System.out.println(age+"岁的"+name+"正在"+address+"睡觉");
    }
    void sayHi(){
        System.out.println("大家好我是"+name+"今年"+age+"岁了，家住"+address);
    }
}
